<?php
namespace Home\Controller;
use Think\Controller;
class MailController extends Controller {
    public function index() {
    	$this->display();
    }

    public function send($to, $cc, $subject, $body) {
    	$mail = new \Custom\Email\Email;
    	$cc = empty($cc) ? false : $cc;
    	$mail->send($to, $subject, $body, $cc);

    	$data['status']  = 1;
		$data['content'] = 'Success';
		$this->ajaxReturn($data);
    }
}